//package com.train.common.aop.interceptor;
//
//import cn.hutool.core.util.StrUtil;
//import com.train.common.aop.annotation.DemoSite;
//import com.train.common.enums.ResultEnum;
//import com.train.common.exception.BizException;
//import com.train.common.properties.SystemSettingProperties;
//import com.train.common.utils.AuthUtils;
//import lombok.RequiredArgsConstructor;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Before;
//
///**
// * @author cxg
// * @desc 演示环境 aop拦截器
// * @date 2024/03/09 18:05
// **/
//@Aspect
//@RequiredArgsConstructor
//public class DemoInterceptor {
////
////    private final SystemSettingProperties systemSettingProperties;
////
////    @Before("@annotation(demoSite)")
////    public void doAfter(DemoSite demoSite) {
////        if (systemSettingProperties.getIsDemoSite() && !StrUtil.equals(AuthUtils.getUsername(), "admin")) {
////            throw new BizException(ResultEnum.SYSTEM_DEMO_SITE_EXCEPTION);
////        }
////    }
//
//}
